home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
getcmd.lbr
/
getcmd.doc
next >
Wrap
Text File
|
2009-09-02
|
1KB
|
32 lines
Routine name: GETCMD
Description: This routine is used in conjunction with compiled IBM
Basic to retrieve the contents of the command line used
to execute the the program. The parameter string may
then be easily parsed by the Basic program itself.
Calling sequence:
CMD$=SPACE$(len) ' Establish string to receive command line
CALL GETCMD (CMD$) ' Retrieve command line
Build sequence:
LINK BASPROG+GETCMD;
Note: The maximum number of characters returned is determined by the
length of the string variable passed as a parameter on the CALL
or by the actual length of the command line entered. The name
of the program entered will have been stripped off by the DOS
operating system.
i.e. If the DOS command line entered were:
RUNPROG THIS IS A SET OF PARAMETERS <enter>
Then the string returned to the Basic program would be:
"THIS IS A SET OF PARAMETERS"